package cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.service;

import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.entity.ParticipatingConference;
import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.mapper.ParticipatingConferenceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author 张烁瑜
 * @Date 2025/5/20 20:26
 */
@Service
public class ParticipationConferenceService {

    @Autowired
    private  ParticipatingConferenceMapper participationConferenceMapper;

    public String save(ParticipatingConference participationConference) {
        if (participationConferenceMapper.save(participationConference)) {
            return "保存成功";
        }
        return "保存失败";
    }

    public String delete(Long participationConferenceId) {
        if (participationConferenceMapper.delete(participationConferenceId)) {
            return "删除成功";
        }
        return "删除失败";
    }

    public String update(ParticipatingConference participationConference) {
        if (participationConferenceMapper.update(participationConference)) {
            return "更新成功";
        }
        return "更新失败";
    }


}
